import React from 'react'
import { Route, IndexRoute } from 'react-router'
// import App from '../container/App'
// import Index from '../components/index/Index'
// import Login from '../components/user/login/UserLogin'
// import Home from '../components/home/Home'
// import User from '../components/user/UserManage'
// import Product from '../components/products/Product'
// import Signup from '../components/user/signup/UserSignUp'
// import Cart from '../components/shoppingCart/ShoppingCart'
// import OrderInfo from '../components/order/OrderInfo'
// import OrderAllList from '../components/order/OrderAllList'
// import OrderPayList from '../components/order/OrderPayList'
// import OrderCommentList from '../components/order/OrderCommentList'
// import OrderSendList from '../components/order/OrderSendList'
// import OrderReceiveList from '../components/order/OrderReceiveList'
// import Address from '../components/user/address/UserAddress'
// import SetAddress from '../components/user/address/UserSetAddress'
// import EditAddress from '../components/user/address/UserEditAddress'
// import SortBox from '../components/sort/SortBox'
// import SortProduct from '../components/sort/SortProduct'
// import Favorite from '../components/user/favorite/Favorite'


export default (
    <Route>
        <Route path="/" component={require('react-router!../container/App')} />
        <Route path="/store/:storeId" >
            <Route component={require('react-router!../components/index/Index')} >
                <IndexRoute  component={require('react-router!../components/home/Home')} />
                <Route path="user" component={require('react-router!../components/user/UserManage')} />
            	<Route path="sort" component={require('react-router!../components/sort/SortBox')} />     
                <Route path="sort/:sortId" component={require('react-router!../components/sort/SortProduct')} />
            </Route>

            <Route path="products/id=:goodsId" component={require('react-router!../components/products/Product')} />

            <Route path="user/shopping-cart" component={require('react-router!../components/shoppingCart/ShoppingCart')} />
            <Route path="user/set-address" component={require('react-router!../components/user/address/UserSetAddress')} />
            <Route path="user/edit-address/:addressId" component={require('react-router!../components/user/address/UserEditAddress')} />
            <Route path="user/address" component={require('react-router!../components/user/address/UserAddress')} />
            <Route path="user/favorite" component={require('react-router!../components/user/favorite/Favorite')} />
            <Route path="user/login" component={require('react-router!../components/user/login/UserLogin')} />
            <Route path="user/signup"component={require('react-router!../components/user/signup/UserSignUp')} />
            <Route path="user/pay" component={require('react-router!../components/pay/Pay')} />
            <Route path="user/order-preview" component={require('react-router!../components/order/OrderPreview')} />
            <Route path="user/order" component={require('react-router!../components/order/OrderInfo')} >
                <IndexRoute  component={require('react-router!../components/order/OrderAllList')} />
                <Route path="will-pay" component={require('react-router!../components/order/OrderPayList')} />
                <Route path="will-send" component={require('react-router!../components/order/OrderSendList')} />
                <Route path="will-receive" component={require('react-router!../components/order/OrderReceiveList')} />
                <Route path="will-comment" component={require('react-router!../components/order/OrderCommentList')} />
            </Route>
        </Route>
    </Route>
)

